﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BSCMFF.Web.UserControls.Details
{
    public partial class KPIDetails_new : System.Web.UI.UserControl
    {
        public string Name
        {
            get
            {
                return RadTextBoxName.Text;
            }
            //set
            //{

            //}
        }

        public string Description
        {
            get
            {
                return RadTextBoxDescription.Text;
            }
            //set
            //{

            //}
        }

        public int Perspective_FK
        {
            get
            {
                return SelectionPerspectiveTarget.SelectedPerspectiveID;
            }
            //set
            //{

            //}
        }

        public string Measure
        {
            get
            {
                return RadTextBoxMeasure.Text;
            }
        }

        public int Weight
        {
            get
            {
                return (int)RadNumericTextBoxWeight.Value;
            }
        }
        public double Min
        {
            get
            {
                return RadNumericTextBoxMin.Value == null ? (double)RadNumericTextBoxStartValue.Value : (double)RadNumericTextBoxMin.Value;
            }
        }
        public double Max
        {
            get
            {
                return RadNumericTextBoxMax.Value ==null ? (double)RadNumericTextBoxTargetValue.Value : (double)RadNumericTextBoxMax.Value;
            }
        }
        public double Start
        {
            get
            {
                return (double)RadNumericTextBoxStartValue.Value;
            }
        }
        public double Target
        {
            get
            {
                return (double)RadNumericTextBoxTargetValue.Value;
            }
        }
        public double Current
        {
            get
            {
                return RadNumericTextBoxCurrentValue.Value == null ? (double)RadNumericTextBoxStartValue.Value : (double)RadNumericTextBoxCurrentValue.Value;
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
}